import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'room_page_tag_inherited.dart';

mixin RoomStatefulControllerMixin<T, S extends StatefulWidget> on State<S> {
  T get roomController {
    final tag = RoomPageTagInheritedWidget.of(context)?.tag;
    assert(tag != null, 'PageTagInherited not found in context');
    return Get.find<T>(tag: tag!);
  }
}
